<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>order-list</title>
</head>
<body>
	<div class="box-positon">
		<div class="rpos">当前位置: 订单管理 - 查看</div>
		<div class="clear"></div>
		<form class="ropt" action="/order/list.do">
			<input type="hidden" value="${pageNo}" name="pageNo"/>
			<input type="submit"  value="返回列表" class="return-button"/>
		</form>
	</div>
	<div class="body-box">
		<form id="jvForm" action="v_list.do" method="post">
			<table cellspacing="1" cellpadding="2" border="0" width="100%" class="pn-ftable">
				<tbody>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">收货人:</td>
						<td width="38%" colspan="1" class="pn-fcontent">${order.user.name}</td>
						<td width="12%" class="pn-flabel pn-flabel-h">手机:</td>
						<td width="38%" colspan="1" class="pn-fcontent">${order.user.phone}</td>
					</tr>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">地址:</td>
						<td width="38%" colspan="3" class="pn-fcontent">${order.user.address}</td>
					</tr>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">订单号:</td>
						<td width="38%" colspan="1" class="pn-fcontent">${order.id}</td>
						<td width="12%" class="pn-flabel pn-flabel-h">运费:</td>
						<td width="38%" colspan="1" class="pn-fcontent">${order.freight}</td>
					</tr>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">订单金额:</td>
						<td width="38%" colspan="1" class="pn-fcontent">${order.orderPrice}</td>
						<td width="12%" class="pn-flabel pn-flabel-h">应付金额:</td>
						<td width="38%" colspan="1" class="pn-fcontent">${order.amountPay}</td>
					</tr>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">支付方式:</td>
						<td width="38%" colspan="1" class="pn-fcontent">
							<c:if test="${order.paymentWay==1}">平台付款</c:if>
							<c:if test="${order.paymentWay==0}">货到付款</c:if>
						</td>
						<td width="12%" class="pn-flabel pn-flabel-h">支付要求:</td>
						<td width="38%" colspan="1" class="pn-fcontent">
							<c:if test="${order.paymentCash==1}">支付宝</c:if>
							<c:if test="${order.paymentCash==0}">现金</c:if>
						</td>
					</tr>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">支付状态:</td>
						<td width="38%" colspan="1" class="pn-fcontent">
							<c:if test="${order.isPay==1}">已付款</c:if>
							<c:if test="${order.isPay==0}">待付款</c:if>
						</td>
						<td width="12%" class="pn-flabel pn-flabel-h">订单状态:</td>
						<td width="38%" colspan="1" class="pn-fcontent">
							<c:if test="${order.orderState==1}">有效订单</c:if>
							<c:if test="${order.orderState==0}">失效订单</c:if>
						</td>
					</tr>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">创建时间:</td>
						<td width="38%" colspan="1" class="pn-fcontent">${order.createDate}</td>
						<td width="12%" class="pn-flabel pn-flabel-h">备注:</td>
						<td width="38%" colspan="1" class="pn-fcontent"></td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
	<div class="body-box">
		<table cellspacing="1" cellpadding="0" border="0" width="100%" class="pn-ltable">
			<thead class="pn-lthead">
			<tr>
				<th>订单细则id</th>
				<th>商品名称</th>
				<th>商品数量</th>
			</tr>
			</thead>
			<tbody class="pn-ltbody">
				<c:forEach items="${order1.orderDetail}" var="detail">
					<tr bgcolor="#ffffff" onmouseover="this.bgColor='#eeeeee'" onmouseout="this.bgColor='#ffffff'">
						<td align="center">${detail.did}</td>
						<td align="center">${detail.pname}</td>
						<td align="center">${detail.pno}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>

</body>
</html>